package com.train.system.po;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 座位
 * @author baitiaojun
 * @TableName train_seat
 * @createDate 2025-02-20 23:20:20
 */
@TableName(value ="train_seat")
@Data
public class TrainSeatPO implements Serializable {


    /**
    * id
    */
    @TableId
    private Long id;

    /**
    * 车次编号
    */
    private String trainCode;

    /**
    * 厢序
    */
    private Integer carriageIndex;

    /**
    * 排号|01, 02
    */
    @TableField(value = "`row`")
    private String row;

    /**
    * 列号|枚举[SeatColEnum]
    */
    private String col;

    /**
    * 座位类型|枚举[SeatTypeEnum]
    */
    private String seatType;

    /**
    * 同车厢座序
    */
    private Integer carriageSeatIndex;

    /**
    * 新增时间
    */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    * 修改时间
    */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
